/*
 * ehdr.h
 *
 *  Created on: Sep 9, 2012
 *      Author: aortegag
 */

#ifndef EHDR_H_
#define EHDR_H_

#include "elf_t.h"

/**
 * \brief Reads the elf header from the file descriptor and saves it into
 * the ehdr ELF header.
 *
 * \note This function assumes file pointed to by fp is already opened.
 *
 * \param[in] fp File pointer to a valid file.
 * \param[in] ehdr ELF header table structure
 *
 * \retval Elf code
 */
elf_code_t read_elf_header(FILE *fd, Elf64_Ehdr *ehdr);

//! \brief Pretty prints the ELF Header
void	pretty_print_ehdr(const Elf64_Ehdr *ehdr);

#endif /* EHDR_H_ */
